<template>
  <div>
    <PurchaseOrderTable ref="refOrderList" :tabsValue="tabsValue" :statusList="statusList"
                        @declarationShipment="declarationShipment"/>
  </div>
</template>

<script>
import PurchaseOrderTable from "@/views/purchase/components/PurchaseOrderTable.vue";
import {sellerShipmentForCaiNiao} from "@/api/order/packGroup";

export default {
  name: "synchronizedOrder",
  components: {
    PurchaseOrderTable,
  },
  data() {
    return {
      tabsValue: "1071",//待发货
      statusList: ['1071', '1072', '1073', '1074'],
    }
  },
  created() {

  },
  methods: {
    // 菜鸟声明发货
    declarationShipment(row) {
      this.$confirm('是否确定执行声明发货操作？', '提示').then(() => {
        sellerShipmentForCaiNiao({orderId: row.orderId}).then(res => {
          this.$message.success(res.msg)
          this.$refs.refOrderList.getList()
        })
      })
    },
  }
}
</script>

<style scoped>

</style>
